
import ajax from './index'
import { append } from './index'

// 小店列表
//
// export const shopList = data => {
//   return ajax.get(`partner_admin/shop/search${append(data)}`)
// }
export function shopList(query) {
  return ajax({
    url: '/backend/partner/data/shopPageList',
    method: 'get',
    params: query
  });
}
// 店铺详情
export function shopEnterManagerDetailData(id) {
  return ajax({
    url: `/backend/seller/detail/${id}`,
    method: 'get'
  });
}

// 会员列表
export const getShopMember = (shopId, data) => {
  return ajax.get(`partner_admin/shop/${shopId}/vip/search${append(data)}`)
}

// 粉丝列表
// export const getFans = (data) => {
//   return ajax.get(`partner_admin/shop/fans${append(data)}`)
// }

export function getFans(query) {
  return ajax({
    url: '/backend/partner/data/memberPageList',
    method: 'get',
    params: query
  });
}
// 红包消费记录
export const getConsume = (data) => {
  return ajax.post(`partner_admin/user/tlj/search`, data)
}
